import request from '@/utils/request';

export const getusersarr = (date) => {
  return request({
    method: 'get',
    url: '/statis/user/'+date+'/count',
  });
};

export const getadminarr = (date) => {
  return request({
    method: 'get',
    url: '/statis/admin/'+date+'/count',
  });
};

export const getorderformarr = (date) => {
  return request({
    method: 'get',
    url: '/statis/order/'+date+'/count',
  });
};

export const getallusers = () => {
  return request({
    method: 'get',
    url: '/v1/users/count',
  });
};

export const getalladmin = () => {
  return request({
    method: 'get',
    url: '/admin/count',
  });
};

export const getallorderform = () => {
  return request({
    method: 'get',
    url: '/bos/orders/count',
  });
};
